package org.example.exp2.exam10;

public class Member extends Component {
   private String name;

   public Member(String name){
      this.name = name;
   }

   @Override
   public void share(String message, String video, String url) {
      System.out.println("向Member" + name + "分享：/n" + "message: " + message + " video: "+ video + " url: " + url);
   }

   @Override
   public void add(Component c) {
      System.out.println("该方法不可用！");
   }

   @Override
   public void remove(Component c) {
      System.out.println("该方法不可用！");
   }

   @Override
   public Component getChild(int i) {
      System.out.println("该方法不可用！");
      return null;
   }
}